package com.tiantian.springtest01;

import com.tiantian.springtest01.conf.AppConfig;
import com.tiantian.springtest01.service.AService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @ClassName Test
 * @Description TODO
 * @Author tant
 * @Date 2025/5/28 9:49
 */
public class Test {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext(AppConfig.class);
        AService aService = context.getBean("AService", AService.class);
        aService.test();
    }
}

    